/**    
 * @package com.liusany.myshop.service 
 * @description : TODO(用一句话描述该包做什么) 
 * @Copyright: Bmcok Corporation 2012    
*/
package com.liusany.myshop.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.liusany.myshop.dao.RoleDao;
import com.liusany.myshop.entity.Role;

/**   
 * @filename ：RoleService.java   
 * @description : TODO(用一句话描述该类做什么) 
 * @version ：   V 1.0
 * @author : liusany
 * @create : 2012-5-18 下午3:15:38  
 * @Copyright: Bmcok Corporation 2012    
 * 
 * Modification History:
 * 	Date			Author			Version			Description
 *--------------------------------------------------------------
 *2012-5-18 下午3:15:38
 */
@Component
@Transactional
public class RoleService extends BaseService<Role, Long> {

	@Resource
	private RoleDao roleDao;
	
	@Resource
	public void setBaseDao(RoleDao roleDao) {
		super.setBaseDao(roleDao);
	}
	
	public void saveRole(Role role){
		roleDao.save(role);
	}
}
